Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-add sync error categories. #6913

Merged
merged 7 commits into from
Aug 25, 2023
Merged

Re-add sync error categories. #6913

merged 7 commits into from
Aug 25, 2023

Conversation

cmelchior
Copy link
Contributor

The simplified error reporting removed the sync categories which were used by SDKs to map errors. Without them, SDKs are forced to map each individual sync code introduced which is both error-prone and difficult.

So in order to make this easier this PR is adding back the old categories and adding them to the new error codes.

I tried to compare the old error codes with the new ones and hope I got the categories correct, but it probably requires verification from someone more familiar with the code.

@cmelchior
Copy link
Contributor Author

This PR should be ready for review 🙏

Copy link
Contributor

@michael-wb michael-wb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a couple of tiny comments.

CHANGELOG.md Outdated Show resolved Hide resolved
src/realm/error_codes.cpp Outdated Show resolved Hide resolved
@cmelchior cmelchior merged commit ea7c5d5 into master Aug 25, 2023
2 checks passed
@cmelchior cmelchior deleted the cm/sync-error-categories branch August 25, 2023 05:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add websocket_error and sync_error error categories to the ErrorCodes::Error values
2 participants